#include<bits/stdc++.h>
using namespace std;
const int N=5e5+5;
long long t,n,a[N],l,r,sum,pd;
int main()
{
	freopen("clean.in","r",stdin);
	freopen("clean.out","w",stdout);
	ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	cin>>t;
	while(t--)
	{
		cin>>n;
		pd=sum=0;
		for(int i=1;i<=n;++i)
			cin>>a[i],sum+=a[i];
		for(int i=1;i<n;++i)
			cin>>l>>r;
		for(int i=1;i<=n;++i)
			if(a[i]>sum-a[i])
				pd=1;
		if(pd||sum%2!=0)
			cout<<"NO"<<'\n';
		else
			cout<<"YES"<<'\n';	
	}
	return 0;
 } 
